package com.yidu;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author sunny
 * @version 1.0
 * @date 2021-12-23
 */
@SpringBootApplication(scanBasePackages = "com.yidu")
@MapperScan("com.yidu.*.mapper")
public class TestSpringBoot {

    static Logger logger=LoggerFactory.getLogger(TestSpringBoot.class);
    public static void main(String[] args) {
        SpringApplication.run(TestSpringBoot.class,args);
        logger.info("一般信息");
        logger.warn("警告信息");
        logger.error("错误日志");
    }
}
